<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/workOrder/workOrder/save}">
        <input type="hidden" name="id" th:if="${workOrder}" th:value="${workOrder.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">工单名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="title" placeholder="请输入工单名称" th:value="${workOrder?.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">生产工单编号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="work_order_no" placeholder="请输入生产工单编号" th:value="${workOrder?.work_order_no}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">下单时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="confirm_date" placeholder="请输入下单时间" th:value="${workOrder?.confirm_date}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">跟单经理</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="follow_by" placeholder="请输入跟单经理" th:value="${workOrder?.follow_by}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">计划生产开始日期</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="plan_start_date" placeholder="请输入计划生产开始日期" th:value="${workOrder?.plan_start_date}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">计划生产结束日期</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="plan_end_date" placeholder="请输入计划生产结束日期" th:value="${workOrder?.plan_end_date}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${workOrder?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>